package cn.imvc.app.repositories;

import java.util.List;
import java.util.Set;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.Department;
import cn.imvc.data.jpa.repository.IJpqlExecutor;

public interface DepartmentRepository extends
		JpaRepository<Department, Integer>, IJpqlExecutor<Department> {
	public Set<Department> findByParentIsNull();
	public List<Department> findByParentIsNull(Sort sort);
}
